from enum import Enum
from typing import Annotated
from fastapi import FastAPI, Path

app = FastAPI(prefix='/test')

class Periods(str, Enum):
    senior = '高中'
    junior = '初中'
    primary = '小学'

@app.get('/{name}/{file_path:path}')
def filter_kb(
        *,
        name: Annotated[str, Path(title='名字', description='学生名字')],
        file_path: Annotated[str, Path(title='路径', description='学生的文件路径')], 
        period:Periods
    ):
    return name
